define(["require", "exports", "./childrenBuilder", "./ifChildren"], function (require, exports, childrenBuilder_1, ifChildren_1) {
    "use strict";
    exports.__esModule = true;
    exports.filterChildren = void 0;
    /**
     * 无缓存mvc
     * @param array
     * @param fun
     */
    function filterChildren(array, fun) {
        return (0, ifChildren_1.ifChildren)(function (me) {
            var vs = [];
            array().forEach(function (row, index) {
                var v = fun(me, row, index);
                vs.push(v);
            });
            return (0, childrenBuilder_1.fragment)({
                children: vs
            });
        });
    }
    exports.filterChildren = filterChildren;
});
